﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
//New and needed
using IM.Domain.Repository;
using IM.Common.Message;
//using IM.Common.DTOS;

namespace IM.Domain.TransManager
{
    public interface ITransManager:IDisposable
    {
        
        TResult ExecuteCommand<TResult>(Func<IRepositoryLocator, TResult> command) where TResult : class, IResponseEnvelopDTO;
        void BeginTransaction();
        void CommitTransaction();
        void RollbackTransaction();
    }
}
